member = {  # 工作人员
    "收款人": ['廖柳英'],
    "复核人": ['杨海涛'],
    "开票人": ['杜仕芬'],
    "开票地址": ['深圳市宝安区航城街道草围社区深圳机场航站四路1111号顺丰华南转运中心综合楼三层、四层0755-36395027'],
    "开票账号": ['中国工商银行深圳车公庙支行4000025319200395130']
}


config = {
    "字体路径": {
        '雅黑': "./src/font/msyh.ttc",
        "宋体": "./src/font/simsun.ttc"
    },

    "发票配置": [{
        "id": 0,
        "name": '发票号码',
        "起始坐标": [5, 4],
        "创建范围": (115, 35),
        "粘贴范围": (1355, 128),
        "字体类型": '雅黑',
        "字体大小": 22,
        "行高":32
    }, {
        "id": 1,
        "name": '密码区',
        "起始坐标": [70, 3],
        "创建范围": (585, 155),
        "粘贴范围": (1056, 263),
        "字体类型": '雅黑',
        "字体大小": 27,
        "行高":38
    }, {
        "id": 2,
        "name": '校验码',
        "起始坐标": [8, 3],
        "创建范围": (320, 35),
        "粘贴范围": (1350, 210),
        "字体类型": '雅黑',
        "字体大小": 22,
        "行高":38
    }, {
        "id": 3,
        "name": '发票金额',
        "tip": "部分金额1",
        "起始坐标": [0, 0],
        "创建范围": (65, 30),
        "粘贴范围": (1270, 473),
        "字体类型": '雅黑',
        "字体大小": 21,
        "行高":38
    }, {
        "id": 4,
        "name": '发票金额2',
        "tip": "部分金额2",
        "起始坐标": [0, 0],
        "创建范围": (95, 30),
        "粘贴范围": (1238, 725),
        "字体类型": '雅黑',
        "字体大小": 22,
        "行高":38
    },  {
        "id": 5,
        "name": '发票单价',
        "tip": "部分金额3下边",
        "起始坐标": [0, 0],
        "创建范围": (120, 30),
        "粘贴范围": (1005, 473),
        "字体类型": '雅黑',
        "字体大小": 21,
        "行高":38
    }, {
        "id": 6,
        "name": '发票税额',
        "tip": "上部分税额",
        "起始坐标": [4, 0],
        "创建范围": (60, 40),
        "粘贴范围": (1580, 473),
        "字体类型": '雅黑',
        "字体大小": 21,
        "行高":38
    }, {
        "id": 7,
        "name": '发票税额2',
        "tip": "下部分税额",
        "起始坐标": [0, 0],
        "创建范围": (90, 40),
        "粘贴范围": (1550, 725),
        "字体类型": '雅黑',
        "字体大小": 22,
        "行高":38
    }, {
        "id": 8,
        "name": '发票总价',
        "起始坐标": [0, 0],
        "创建范围": (100, 30),
        "粘贴范围": (1539, 790),
        "字体类型": '雅黑',
        "字体大小": 23,
        "行高":38
    }, {
        "id": 9,
        "name": '总价大写',
        "起始坐标": [5, 1],
        "创建范围": (220, 35),
        "粘贴范围": (503, 786),
        "字体类型": '宋体',
        "字体大小": 27,
        "行高":38
    }, {
        "id": 10,
        "name": '发票日期',
        "起始坐标": [4, 3],
        "创建范围": (200, 30),
        "粘贴范围": (1355, 175),
        "字体类型": '宋体',
        "字体大小": 22,
        "行高":38
    }, {
        "id": 11,
        "name": '发票抬头',
        "起始坐标": [4, 4],
        "创建范围": (316, 40),
        "粘贴范围": (326, 264),
        "字体类型": '宋体',
        "字体大小": 22,
        "行高":38
    }, {
        "id": 12,
        "name": '发票税号',
        "起始坐标": [4, 3],
        "创建范围": (316, 40),
        "粘贴范围": (326, 304),
        "字体类型": '宋体',
        "字体大小": 22,
        "行高":38
    }]
}

if __name__ == '__main__':
    import sys
    print(len(sys.argv))
